package part21;

/**
 * @author wcj
 * @Date 2021/6/7 16:08
 * @Version 1.0
 */
public class Part212 {

    /**
     * Thread类创建线程，传入一个Runnable对象
     *
     * @param args
     */
    public static void main(String[] args) {
        Thread thread = new Thread(new LiftOff());
        thread.start();
        System.out.println("Waiting for LiftOff!");

        for (int i = 0; i < 5; i++) {
            new Thread(new LiftOff()).start();
        }
        System.out.println("Waiting for LiftOff!");
    }
}
